package com.sunkyc.framework.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunkyc.framework.system.entity.SysDept;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author sunkyc
 * @since 2022-05-31
 */
public interface SysDeptMapper extends BaseMapper<SysDept> {

    @Select("SELECT MIN(parent_id) FROM sys_dept")
    Long minParentId();


}
